package com.scoe.gcs.comms.objects;

public class HUD {
	
	public double roll = 0, pitch = 0, yaw = 0;
	public float altitude = 0;
	public double remainBatt = 0;
	public int battVolt = 0;
	public String gpsFix = "";
	public String navMode = "";
		
	public HUD() {
		
	}

	/**
	 * Receive current copter orientation
	 * @param roll
	 * @param pitch
	 * @param yaw
	 */
	public void newFlightData(float roll, float pitch, float yaw) {
		this.roll = ( roll * 180.0 / Math.PI);
		this.pitch =( pitch * 180.0 / Math.PI);
		this.yaw = ( yaw * 180.0 / Math.PI);
		
	}

	public void setAltitude(float alt) {
		this.altitude  = alt;
		
	}

	public void setBatteryRemaining(double d) {
		this.remainBatt = d;
		
	}

	public void setbatteryMVolt(int vbat) {
		this.battVolt = vbat;
		
	}

	public void setGPSFix(String s) {
		this.gpsFix = s;
		
	}

	public void setNavMode(String nav) {
		this.navMode  = nav;
		
	}
}
